//
//  XGHeader.m
//  AFNetworking
//
//  Created by 薛小刚 on 2018/4/17.
//

#import "XGHeader.h"


@implementation XGHeader

- (void) prepare {
    [super prepare];
    //根据拖拽的情况自动切换透明度
    self.automaticallyChangeAlpha = YES;
    
    //隐藏时间
//    self.lastUpdatedTimeLabel.hidden = YES;
    [self setTitle:@"下拉刷新" forState:MJRefreshStateIdle];
    [self setTitle:@"释放刷新" forState:MJRefreshStatePulling];
    [self setTitle:@"加载中..." forState:MJRefreshStateRefreshing];
//    self.stateLabel.hidden = YES;
    self.backgroundColor = [UIColor color_main_background_color];
    //设置文字颜色
    self.stateLabel.textColor = [UIColor color_text_deep_gray];
    
    
}


- (void)placeSubviews
{
    [super placeSubviews];
    
//    self.logoView.x = 0;
//    self.logoView.width = self.width;
//    self.logoView.height = 100;
//    self.logoView.y =  -self.logoView.height;
}

@end
